import request from '@/utils/request';

// 列表
export function getInstanceList(params) {
    return request({
        url: '/supplies/numcharge/page',
        method: 'get',
        params,
    });
}

// 详情
export function getInstanceDetail(id) {
    return request({
        url: '/supplies/numcharge/' + id,
        method: 'get',
    });
}

// 新增
export function addInstance(data) {
    return request({
        url: '/supplies/numcharge/numChargeAdd',
        method: 'post',
        data,
    });
}

// 编辑
export function editInstance(data) {
    return request({
        url: '/supplies/numcharge/numChargeDraft',
        method: 'put',
        data,
    });
}

// 删除
export function deleteInstance(ids) {
    return request({
        url: '/supplies/numcharge/' + ids,
        method: 'delete',
    });
}
